package com.td.framework.webmanager.domain;

/**
 * AppsysGljsbId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class AppsysGljsbId implements java.io.Serializable {

	// Fields

	private Long sid;
	private String zdmc;

	// Constructors

	/** default constructor */
	public AppsysGljsbId() {
	}

	/** full constructor */
	public AppsysGljsbId(Long sid, String zdmc) {
		this.sid = sid;
		this.zdmc = zdmc;
	}

	// Property accessors

	public Long getSid() {
		return this.sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public String getZdmc() {
		return this.zdmc;
	}

	public void setZdmc(String zdmc) {
		this.zdmc = zdmc;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AppsysGljsbId))
			return false;
		AppsysGljsbId castOther = (AppsysGljsbId) other;

		return ((this.getSid() == castOther.getSid()) || (this.getSid() != null
				&& castOther.getSid() != null && this.getSid().equals(
				castOther.getSid())))
				&& ((this.getZdmc() == castOther.getZdmc()) || (this.getZdmc() != null
						&& castOther.getZdmc() != null && this.getZdmc()
						.equals(castOther.getZdmc())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSid() == null ? 0 : this.getSid().hashCode());
		result = 37 * result
				+ (getZdmc() == null ? 0 : this.getZdmc().hashCode());
		return result;
	}

}